<header>
    <a onclick="closeSel();" style="color: #fff; ">
        <i class="iconfont icon-xialalan-copy"></i>
    </a>
    <span>常用联系人</span>
</header>
<div class="container margin_bot">
    <ul class="info">
        <?php foreach($output['infos']as $k=>$v){ ?>
        <li class="info_li"><input id="check" name="check_2" type="checkbox"/><span><?php echo $v['mb_name']; ?></span><span class="fr"><?php echo $v['mb_phone']; ?></span></li>
        <?php } ?>
    </ul>
   <!-- <span class="action">提示语：XXXXXXXXX</span>-->
</div>
<!--<a class="btn footer_1" href="javascript:;">
    +新增联系人
</a>-->
<script>

    //选择联系人
   /* $("[name='check_2']").click(function(){
        $("input[name='check_2']").removeAttr("checked");;
        $(this).attr("checked","true");
        var name = $(this).next('span').text();
        var phone = $(this).next().next('span').text();
        $("[name='name']").val(name);
        $("[name='phone']").val(phone);
        closeSel();
    })*/

    //选择联系人
      $(".info_li").click(function(){
        $("input[name='check_2']").removeAttr("checked");;
        $(this).attr("checked","true");
        var name = $(this).find('span:eq(0)').text();
        var phone = $(this).find('span:eq(1)').text();
        $("[name='name']").val(name);
        $("[name='phone']").val(phone);
        closeSel();
    })
</script>